package com.javasm.adminapi.module.system.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 权限表(Permission)表实体类
 *
 * @author makejava
 * @since 2025-10-14 21:47:37
 */
@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Permission extends Model<Permission> {
//权限ID
    @TableId(type = IdType.AUTO)
    private Long id;
//权限名称
    private String permissionName;
//父权限ID（0=顶级权限）
    private Long parentId;
//权限URL/资源路径
    private String permissionUrl;
//权限图标
    private String icon;
//排序号（用于显示顺序）
    private Integer sort;

    private Integer status;
//创建时间
    private Date createTime;
    @TableField(exist = false)
    private List<Permission> childList;
    @TableField(exist = false)
    private Integer add;
    @TableField(exist = false)
    private Integer update;
    @TableField(exist = false)
    private Integer delete;

    @TableField(exist = false)
    private Integer menuId;

}
